function getUrlParam(paraName) {
    var url = document.location.toString();
    // alert(url);
    var arrObj = url.split("?");
    if (arrObj.length > 1) {
        var arrPara = arrObj[1].split("&");
        var arr;
        for (var i = 0; i < arrPara.length; i++) {
            arr = arrPara[i].split("=");
            if (arr != null && arr[0] == paraName) {
                return arr[1];
            }
        }
        return "";
    } else {
        return "";
    }
}



/**
 * 计时器
 * @type {number}
 */
var secs = 1; //倒计时的秒数
var URL;

function Load(url) {
    URL = url;
    for (var i = secs; i >= 0; i--) {
        window.setTimeout('doUpdate(' + i + ')', (secs - i) * 1000);
    }
}

function doUpdate(num) {
    if (num == 0) {
        window.location = URL;
    }
}

